home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- // BmpFilm.h
- //---------------------------------------------------------------------------
-
- //---------------------------------------------------------------------------
- // Resource Information
- //---------------------------------------------------------------------------
- // Toolbox bitmap resource IDs numbers.
- //---------------------------------------------------------------------------
- #define IDBMP_BmpFilm 8000
- #define IDBMP_BmpFilmDOWN 8001
- #define IDBMP_BmpFilmMONO 8003
- #define IDBMP_BmpFilmEGA 8006
-
- //---------------------------------------------------------------------------
- // Update these fields for each build.
- //---------------------------------------------------------------------------
- #define VBX_VERSION 3,00,0,00
- #define VBX_VERSION_STR "3.00.000"
-
- #ifndef RC_INVOKED
- //---------------------------------------------------------------------------
- // Macro for referencing member of structure
- //---------------------------------------------------------------------------
- #define OFFSETIN(struc,field) ((USHORT)&(((struc *)0)->field))
-
-
- //---------------------------------------------------------------------------
- // Control Procedure
- //---------------------------------------------------------------------------
- LONG FAR PASCAL _export BmpFilmCtlProc(HCTL, HWND, USHORT, USHORT, LONG);
-
- //---------------------------------------------------------------------------
- // BmpFilm control data and structs
- //---------------------------------------------------------------------------
- typedef struct tagBmpFilm
- {
- ENUM About;
- HPIC Picture;
- SHORT Interval;
- SHORT Cols;
- SHORT Rows;
- int Col;
- int Row;
- } BmpFilm;
-
- typedef BmpFilm FAR * LPBmpFilm;
-
- #define LpBmpFilmDEREF(hctl) ((LPBmpFilm)VBDerefControl(hctl))
-
-
- //---------------------------------------------------------------------------
- // Property info
- //---------------------------------------------------------------------------
-
- PROPINFO Property_About =
- {
- "About",
- DT_ENUM | PF_fGetData | PF_fSetMsg | PF_fSetMsg,
- OFFSETIN(BmpFilm, About), 0,
- 0,
- "Click on ""..."" for About Box\0",
- 0
- };
-
- PROPINFO Property_Picture =
- {
- "Picture",
- DT_PICTURE | PF_fGetData | PF_fSaveData | PF_fSetData | PF_fSetMsg,
- OFFSETIN(BmpFilm, Picture),
- 0, 0, NULL, 0
- };
-
- PROPINFO Property_Interval =
- {
- "Interval",
- DT_SHORT | PF_fGetData | PF_fSaveData | PF_fSetData | PF_fSetMsg,
- OFFSETIN(BmpFilm, Interval),
- 0, 0, NULL, 0
- };
-
- PROPINFO Property_Cols =
- {
- "Cols",
- DT_SHORT | PF_fGetData | PF_fSaveData | PF_fSetData | PF_fSetMsg,
- OFFSETIN(BmpFilm, Cols),
- 0, 0, NULL, 0
- };
-
- PROPINFO Property_Rows =
- {
- "Rows",
- DT_SHORT | PF_fGetData | PF_fSaveData | PF_fSetData | PF_fSetMsg,
- OFFSETIN(BmpFilm, Rows),
- 0, 0, NULL, 0
- };
-
-
- //---------------------------------------------------------------------------
- // Property list
- //---------------------------------------------------------------------------
- // Define the consecutive indicies for the properties
- //---------------------------------------------------------------------------
- #define IPROP_BmpFilm_CTLNAME 0
- #define IPROP_BmpFilm_HWND 1
- #define IPROP_BmpFilm_INDEX 2
- #define IPROP_BmpFilm_About 3
- #define IPROP_BmpFilm_ENABLED 4
- #define IPROP_BmpFilm_HEIGHT 5
- #define IPROP_BmpFilm_LEFT 6
- #define IPROP_BmpFilm_TOP 7
- #define IPROP_BmpFilm_VISIBLE 8
- #define IPROP_BmpFilm_WIDTH 9
- #define IPROP_BmpFilm_Picture 10
- #define IPROP_BmpFilm_Interval 11
- #define IPROP_BmpFilm_Cols 12
- #define IPROP_BmpFilm_Rows 13
-
- PPROPINFO BmpFilm_Properties[] =
- {
- PPROPINFO_STD_CTLNAME,
- PPROPINFO_STD_HWND,
- PPROPINFO_STD_INDEX,
- &Property_About,
- PPROPINFO_STD_ENABLED,
- PPROPINFO_STD_HEIGHT,
- PPROPINFO_STD_LEFT,
- PPROPINFO_STD_TOP,
- PPROPINFO_STD_VISIBLE,
- PPROPINFO_STD_WIDTH,
- &Property_Picture,
- &Property_Interval,
- &Property_Cols,
- &Property_Rows,
- NULL
- };
-
-
- //---------------------------------------------------------------------------
- // Event info
- //---------------------------------------------------------------------------
- EVENTINFO Event_Paint =
- {
- "Paint",
- 0,
- 0,
- NULL,
- NULL
- };
-
-
- //---------------------------------------------------------------------------
- // Event list
- //---------------------------------------------------------------------------
- // Define the consecutive indicies for the events
- //---------------------------------------------------------------------------
- #define IEVENT_BmpFilm_CLICK 0
- #define IEVENT_BmpFilm_DBLCLICK 1
- #define IEVENT_BmpFilm_MOUSEDOWN 2
- #define IEVENT_BmpFilm_MOUSEMOVE 3
- #define IEVENT_BmpFilm_MOUSEUP 4
- #define IEVENT_BmpFilm_Paint 5
-
- PEVENTINFO
- BmpFilm_Events[] =
- {
- PEVENTINFO_STD_CLICK,
- PEVENTINFO_STD_DBLCLICK,
- PEVENTINFO_STD_MOUSEDOWN,
- PEVENTINFO_STD_MOUSEMOVE,
- PEVENTINFO_STD_MOUSEUP,
- &Event_Paint,
- NULL
- };
-
-
- //---------------------------------------------------------------------------
- // Model struct
- //---------------------------------------------------------------------------
- // Define the control model (using the event and property structures).
- //---------------------------------------------------------------------------
- MODEL modelBmpFilm =
- {
- VB_VERSION, // VB version being used
- 0, // MODEL flags
- (PCTLPROC)BmpFilmCtlProc, // Control procedure
- 0 | CS_HREDRAW | CS_VREDRAW, // Class style
- 0L, // Default Windows style
- sizeof(BmpFilm), // Size of CIRC structure
- IDBMP_BmpFilm, // Palette bitmap ID
- "BmpFilm", // Default control name
- "BmpFilm", // Visual Basic class name
- NULL, // Parent class name
- BmpFilm_Properties, // Property information table
- BmpFilm_Events, // Event information table
- 0, // Default property
- 0, // Default event
- };
- #endif // RC_INVOKED
- //---------------------------------------------------------------------------
-